import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './user.entity';

@Module({
  // 链接用户表
  imports: [TypeOrmModule.forFeature([User])], // Import the User entity for TypeORM
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService]
})
export class UserModule { }
